<?php
class IndexController extends Controller {
	public function index() {
		$this->helper(array('system','pinyin','cookie'));//调用公有函数
		//set_cookie('caixudong', '我是的', 86400,"/");
		//echo get_cookie('caixudong');
		//setcookie('caixudong', '我是的dsde', 86400,"/");
		echo get_cookie('caixudong');
		$u = $this->model('User');
		$p = $this->model('Privilege');
		//echo $this->input->get('a','默认数据');
		$this->show('index.php');
		//echo $this->getRunTime();
		echo strtopinyin('FIFSKY框架');
	}
	public function test() {
		print_r($this->db->getAll("select * from ".$this->db->prefix."users"));
	}
}